home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / defaults / pref / firefox.js < prev    next >
Text File  |  2006-05-08  |  20KB  |  393 lines

  1. /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is mozilla.org code.
  16.  *
  17.  * The Initial Developer of the Original Code is 
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or 
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the MPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the MPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38. // XXX Toolkit-specific preferences should be moved into toolkit.js
  39.  
  40. //@line 41 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  41.  
  42. //@line 44 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  43.  
  44. //@line 50 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  45.  
  46. pref("startup.homepage_override_url","chrome://browser-region/locale/region.properties");
  47. pref("general.startup.browser", true);
  48.  
  49. pref("browser.chromeURL","chrome://browser/content/");
  50. pref("browser.hiddenWindowChromeURL", "chrome://browser/content/hiddenWindow.xul");
  51. pref("xpinstall.dialog.confirm", "chrome://mozapps/content/xpinstall/xpinstallConfirm.xul");
  52. pref("xpinstall.dialog.progress.skin", "chrome://mozapps/content/extensions/extensions.xul?type=themes");
  53. pref("xpinstall.dialog.progress.chrome", "chrome://mozapps/content/extensions/extensions.xul?type=extensions");
  54. pref("xpinstall.dialog.progress.type.skin", "Extension:Manager-themes");
  55. pref("xpinstall.dialog.progress.type.chrome", "Extension:Manager-extensions");
  56.  
  57. pref("extensions.getMoreExtensionsURL", "chrome://mozapps/locale/extensions/extensions.properties");
  58. pref("extensions.getMoreThemesURL", "chrome://mozapps/locale/extensions/extensions.properties");
  59. // Developers can set this to |true| if they are constantly changing files in their 
  60. // extensions directory so that the extension system does not constantly think that
  61. // their extensions are being updated and thus reregistered every time the app is
  62. // started.
  63. pref("extensions.ignoreMTimeChanges", false);
  64. // Enables some extra Extension System Logging (can reduce performance)
  65. pref("extensions.logging.enabled", false);
  66.  
  67. // App-specific update preferences
  68.  
  69. // Whether or not app updates are enabled
  70. pref("app.update.enabled", true);
  71.  
  72. // This preference turns on app.update.mode and allows automatic download and
  73. // install to take place. We use a separate boolean toggle for this to make
  74. // the UI easier to construct.
  75. pref("app.update.auto", true);
  76.  
  77. // Defines how the Application Update Service notifies the user about updates:
  78. //
  79. // AUM Set to:        Minor Releases:     Major Releases:
  80. // 0                  download no prompt  download no prompt
  81. // 1                  download no prompt  download no prompt if no incompatibilities
  82. // 2                  download no prompt  prompt
  83. //
  84. // See chart in nsUpdateService.js.in for more details
  85. //
  86. pref("app.update.mode", 1);
  87.  
  88. // If set to true, the Update Service will present no UI for any event.
  89. pref("app.update.silent", false);
  90.  
  91. // Update service URL:
  92. pref("app.update.url", "https://aus2.mozilla.org/update/1/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/update.xml");
  93. // URL user can browse to manually if for some reason all update installation
  94. // attempts fail.  TODO: Change this URL
  95. pref("app.update.url.manual", "http://www.mozilla.org/products/firefox/");
  96. // A default value for the "More information about this update" link
  97. // supplied in the "An update is available" page of the update wizard. 
  98. pref("app.update.url.details", "chrome://browser-region/locale/region.properties");
  99.  
  100. // User-settable override to app.update.url for testing purposes.
  101. //pref("app.update.url.override", "");
  102.  
  103. // Interval: Time between checks for a new version (in seconds)
  104. //           default=1 day
  105. pref("app.update.interval", 86400);
  106. // Interval: Time before prompting the user to download a new version that 
  107. //           is available (in seconds) default=1 day
  108. pref("app.update.nagTimer.download", 86400);
  109. // Interval: Time before prompting the user to restart to install the latest
  110. //           download (in seconds) default=30 minutes
  111. pref("app.update.nagTimer.restart", 1800);
  112. // Interval: When all registered timers should be checked (in milliseconds)
  113. //           default=5 seconds
  114. pref("app.update.timer", 600000);
  115.  
  116. // Whether or not we show a dialog box informing the user that the update was
  117. // successfully applied. This is off in Firefox by default since we show a 
  118. // upgrade start page instead! Other apps may wish to show this UI, and supply
  119. // a whatsNewURL field in their brand.properties that contains a link to a page
  120. // which tells users what's new in this new update.
  121. pref("app.update.showInstalledUI", false);
  122.  
  123. // 0 = suppress prompting for incompatibilities if there are updates available
  124. //     to newer versions of installed addons that resolve them.
  125. // 1 = suppress prompting for incompatibilities only if there are VersionInfo
  126. //     updates available to installed addons that resolve them, not newer
  127. //     versions.
  128. pref("app.update.incompatible.mode", 0);
  129.  
  130. // Symmetric (can be overridden by individual extensions) update preferences.
  131. // e.g.
  132. //  extensions.{GUID}.update.enabled
  133. //  extensions.{GUID}.update.url
  134. //  extensions.{GUID}.update.interval
  135. //  .. etc ..
  136. //
  137. pref("extensions.update.enabled", true);
  138. pref("extensions.update.url", "chrome://mozapps/locale/extensions/extensions.properties");
  139. pref("extensions.update.interval", 86400);  // Check for updates to Extensions and 
  140.                                             // Themes every week
  141. // Non-symmetric (not shared by extensions) extension-specific [update] preferences
  142. pref("extensions.getMoreExtensionsURL", "chrome://mozapps/locale/extensions/extensions.properties");
  143. pref("extensions.getMoreThemesURL", "chrome://mozapps/locale/extensions/extensions.properties");
  144. pref("extensions.dss.enabled", false);          // Dynamic Skin Switching                                               
  145. pref("extensions.dss.switchPending", false);    // Non-dynamic switch pending after next
  146.                                                 // restart.
  147.  
  148. pref("xpinstall.whitelist.add", "update.mozilla.org");
  149. pref("xpinstall.whitelist.add.103", "addons.mozilla.org");
  150.  
  151. pref("keyword.enabled", true);
  152. pref("keyword.URL", "http://www.google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=");
  153.  
  154. pref("general.useragent.locale", "en-US");
  155. pref("general.skins.selectedSkin", "classic/1.0");
  156. pref("general.useragent.extra.firefox", "Firefox/1.5.0.3");
  157.  
  158. pref("general.smoothScroll", false);
  159. //@line 165 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  160. pref("general.autoScroll", false);
  161. //@line 169 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  162.  
  163. // Whether or not the application should check at startup each time if it 
  164. // is the default browser.
  165. pref("browser.shell.checkDefaultBrowser", true);
  166.  
  167. // 0 = blank, 1 = home (browser.startup.homepage), 2 = last
  168. // XXXBlake Remove this stupid pref
  169. pref("browser.startup.page",                1);
  170. pref("browser.startup.homepage",              "resource:/browserconfig.properties");
  171.  
  172. pref("browser.cache.disk.capacity",         50000);
  173. pref("browser.enable_automatic_image_resizing", true);
  174. pref("browser.urlbar.matchOnlyTyped", false);
  175. pref("browser.chrome.site_icons", true);
  176. pref("browser.chrome.favicons", true);
  177. pref("browser.formfill.enable", true);
  178.  
  179. pref("browser.download.useDownloadDir", true);
  180. pref("browser.download.folderList", 0);
  181. //@line 191 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  182. pref("browser.download.manager.showAlertOnComplete", false);
  183. //@line 193 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  184. pref("browser.download.manager.showAlertInterval", 2000);
  185. pref("browser.download.manager.retention", 2);
  186. pref("browser.download.manager.showWhenStarting", true);
  187. pref("browser.download.manager.useWindow", true);
  188. pref("browser.download.manager.closeWhenDone", false);
  189. pref("browser.download.manager.openDelay", 0);
  190. pref("browser.download.manager.focusWhenStarting", false);
  191. pref("browser.download.manager.flashCount", 2);
  192.  
  193. // pointer to the default engine name
  194. pref("browser.search.defaultenginename",      "chrome://browser-region/locale/region.properties");
  195. // pointer to the Web Search url (content area context menu)
  196. pref("browser.search.defaulturl",             "chrome://browser-region/locale/region.properties");
  197. // Ordering of Search Engines in the Engine list. 
  198. pref("browser.search.order.1",                "chrome://browser-region/locale/region.properties");
  199. pref("browser.search.order.2",                "chrome://browser-region/locale/region.properties");
  200.  
  201. pref("browser.search.param.Google.1.default", "chrome://branding/content/searchconfig.properties");
  202. pref("browser.search.param.Google.1.custom",  "chrome://branding/content/searchconfig.properties");
  203. pref("browser.search.order.Yahoo.1",          "chrome://branding/content/searchconfig.properties");
  204. pref("browser.search.order.Yahoo.2",          "chrome://branding/content/searchconfig.properties");
  205. pref("browser.search.order.Yahoo",            "chrome://branding/content/searchconfig.properties");
  206.  
  207. // basic search popup constraint: minimum sherlock plugin version displayed
  208. // (note: must be a string representation of a float or it'll default to 0.0)
  209. pref("browser.search.basic.min_ver", "0.0");
  210.  
  211. // send ping to the server to update
  212. pref("browser.search.update", true);
  213.  
  214. pref("browser.history.grouping", "day");
  215. pref("browser.sessionhistory.max_entries", 50);
  216.  
  217. // handle external links
  218. // 0=default window, 1=current window/tab, 2=new window, 3=new tab in most recent window
  219. pref("browser.link.open_external", 3);
  220.  
  221. // handle links targeting new windows
  222. pref("browser.link.open_newwindow", 2);
  223.  
  224. // 0: no restrictions - divert everything
  225. // 1: don't divert window.open at all
  226. // 2: don't divert window.open with features
  227. pref("browser.link.open_newwindow.restriction", 2);
  228.  
  229. // Tab browser preferences.
  230. pref("browser.tabs.loadInBackground", true);
  231. pref("browser.tabs.loadFolderAndReplace", true);
  232. pref("browser.tabs.opentabfor.middleclick", true);
  233. pref("browser.tabs.opentabfor.urlbar", true);
  234. pref("browser.tabs.loadDivertedInBackground", false);
  235. pref("browser.tabs.loadBookmarksInBackground", false);
  236.  
  237. // Smart Browsing prefs
  238. pref("browser.related.enabled", true);
  239. pref("browser.related.autoload", 1);  // 0 = Always, 1 = After first use, 2 = Never
  240. pref("browser.related.provider", "http://www-rl.netscape.com/wtgn?");
  241. pref("browser.related.disabledForDomains", "");
  242. pref("browser.goBrowsing.enabled", true);
  243.  
  244. // Default bookmark sorting
  245. pref("browser.bookmarks.sort.direction", "descending");
  246. pref("browser.bookmarks.sort.resource", "rdf:http://home.netscape.com/NC-rdf#Name");
  247.  
  248. // Scripts & Windows prefs
  249. pref("dom.disable_open_during_load",              true);
  250. pref("javascript.options.showInConsole",          false);
  251. // Make the status bar reliably present and unaffected by pages
  252. pref("dom.disable_window_open_feature.status",    true);
  253. // This is the pref to control the location bar, change this to true to 
  254. // force this instead of or in addition to the status bar - this makes 
  255. // the origin of popup windows more obvious to avoid spoofing but we 
  256. // cannot do it by default because it affects UE for web applications.
  257. pref("dom.disable_window_open_feature.location",  false);
  258. pref("dom.disable_window_status_change",          true);
  259. // allow JS to move and resize existing windows
  260. pref("dom.disable_window_move_resize",            false);
  261. // prevent JS from monkeying with window focus, etc
  262. pref("dom.disable_window_flip",                   false);
  263.  
  264. pref("browser.trim_user_and_password",            true);
  265.  
  266. // popups.policy 1=allow,2=reject
  267. pref("privacy.popups.policy",               1);
  268. pref("privacy.popups.usecustom",            true);
  269. pref("privacy.popups.firstTime",            true);
  270. pref("privacy.popups.showBrowserMessage",   true);
  271.  
  272. pref("privacy.item.history",    true);
  273. pref("privacy.item.formdata",   true);
  274. pref("privacy.item.passwords",  false);
  275. pref("privacy.item.downloads",  true);
  276. pref("privacy.item.cookies",    false);
  277. pref("privacy.item.cache",      true);
  278. pref("privacy.item.siteprefs",  false);
  279. pref("privacy.item.sessions",   true);
  280.  
  281. pref("privacy.sanitize.sanitizeOnShutdown", false);
  282. pref("privacy.sanitize.promptOnSanitize", true);
  283.  
  284. pref("network.proxy.share_proxy_settings",  false); // use the same proxy settings for all protocols
  285.  
  286. pref("network.cookie.cookieBehavior",       0); // cookies enabled
  287. pref("network.cookie.enableForCurrentSessionOnly", false);
  288. pref("network.cookie.denyRemovedCookies", false);
  289.  
  290. // l12n and i18n
  291. pref("intl.accept_languages", "chrome://global/locale/intl.properties");
  292. // collationOption is only set on linux for japanese. see bug 18338 and 62015
  293. // we need to check if this pref is still useful.
  294. pref("intl.collationOption",  "chrome://global-platform/locale/intl.properties");
  295. pref("intl.charsetmenu.browser.static", "chrome://global/locale/intl.properties");
  296. pref("intl.charsetmenu.browser.more1",  "chrome://global/locale/intl.properties");
  297. pref("intl.charsetmenu.browser.more2",  "chrome://global/locale/intl.properties");
  298. pref("intl.charsetmenu.browser.more3",  "chrome://global/locale/intl.properties");
  299. pref("intl.charsetmenu.browser.more4",  "chrome://global/locale/intl.properties");
  300. pref("intl.charsetmenu.browser.more5",  "chrome://global/locale/intl.properties");
  301. pref("intl.charsetmenu.browser.unicode",  "chrome://global/locale/intl.properties");
  302. pref("intl.charset.detector", "chrome://global/locale/intl.properties");
  303. pref("intl.charset.default",  "chrome://global-platform/locale/intl.properties");
  304. pref("font.language.group", "chrome://global/locale/intl.properties");
  305. pref("intl.menuitems.alwaysappendaccesskeys","chrome://global/locale/intl.properties");
  306. pref("intl.menuitems.insertseparatorbeforeaccesskeys","chrome://global/locale/intl.properties");
  307.  
  308. // 0=lines, 1=pages, 2=history , 3=text size
  309. //@line 327 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  310. pref("mousewheel.withcontrolkey.action",3);
  311. pref("mousewheel.withcontrolkey.sysnumlines",false);
  312. pref("mousewheel.withshiftkey.action",2);
  313. pref("mousewheel.withshiftkey.sysnumlines",false);
  314. //@line 332 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  315. pref("mousewheel.withaltkey.action",0);
  316. pref("mousewheel.withaltkey.sysnumlines",false);
  317.  
  318. pref("profile.allow_automigration", false);   // setting to false bypasses automigration in the profile code
  319.  
  320. // Customizable toolbar stuff
  321. pref("custtoolbar.personal_toolbar_folder", "");
  322. pref("browser.throbber.url","chrome://browser-region/locale/region.properties");
  323.  
  324. // pref to control the alert notification 
  325. pref("alerts.slideIncrement", 1);
  326. pref("alerts.slideIncrementTime", 10);
  327. pref("alerts.totalOpenTime", 4000);
  328. pref("alerts.height", 50);
  329.  
  330. pref("browser.xul.error_pages.enabled", true);
  331.  
  332. pref("signon.rememberSignons",              true);
  333. pref("signon.expireMasterPassword",         false);
  334. pref("signon.SignonFileName", "signons.txt");
  335.  
  336. // We want to make sure mail URLs are handled externally...
  337. pref("network.protocol-handler.external.mailto", true); // for mail
  338. pref("network.protocol-handler.external.news", true);   // for news
  339. pref("network.protocol-handler.external.snews", true);  // for secure news
  340. pref("network.protocol-handler.external.nntp", true);   // also news
  341. // ...without warning dialogs
  342. pref("network.protocol-handler.warn-external.mailto", false);
  343. pref("network.protocol-handler.warn-external.news", false);
  344. pref("network.protocol-handler.warn-external.snews", false);
  345. pref("network.protocol-handler.warn-external.nntp", false);
  346.  
  347. // By default, all protocol handlers are exposed.  This means that
  348. // the browser will respond to openURL commands for all URL types.
  349. // It will also try to open link clicks inside the browser before
  350. // failing over to the system handlers.
  351. pref("network.protocol-handler.expose-all", true);
  352. pref("network.protocol-handler.expose.mailto", false);
  353. pref("network.protocol-handler.expose.news", false);
  354. pref("network.protocol-handler.expose.snews", false);
  355. pref("network.protocol-handler.expose.nntp", false);
  356.  
  357. // Default security warning dialogs to show once.
  358. pref("security.warn_entering_secure.show_once", true);
  359. pref("security.warn_entering_weak.show_once", true);
  360. pref("security.warn_leaving_secure.show_once", true);
  361. pref("security.warn_viewing_mixed.show_once", true);
  362. pref("security.warn_submit_insecure.show_once", true);
  363.  
  364. //@line 382 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  365. pref("browser.urlbar.clickSelectsAll", false);
  366. //@line 386 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  367.  
  368. pref("accessibility.typeaheadfind", false);
  369. pref("accessibility.typeaheadfind.timeout", 5000);
  370. pref("accessibility.typeaheadfind.linksonly", false);
  371. pref("accessibility.typeaheadfind.flashBar", 1);
  372.  
  373. // Disable the default plugin for firefox
  374. pref("plugin.default_plugin_disabled", true);
  375.  
  376. // plugin finder service url
  377. pref("pfs.datasource.url", "https://pfs.mozilla.org/plugins/PluginFinderService.php?mimetype=%PLUGIN_MIMETYPE%&appID=%APP_ID%&appVersion=%APP_VERSION%&clientOS=%CLIENT_OS%&chromeLocale=%CHROME_LOCALE%");
  378.  
  379. //@line 401 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  380. pref("browser.preferences.instantApply", true);
  381. //@line 406 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  382. pref("browser.preferences.animateFadeIn", false);
  383. //@line 409 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  384. pref("browser.display.screen_resolution", 96);
  385. //@line 411 "/var/tmp/portage/mozilla-firefox-1.5.0.3/work/mozilla/browser/app/profile/firefox.js"
  386.  
  387. pref("browser.download.show_plugins_in_list", true);
  388. pref("browser.download.hide_plugins_without_extensions", true);
  389.  
  390. // Setting this pref to |true| forces BiDi UI menu items and keyboard shortcuts
  391. // to be exposed. By default, only expose it for bidi-associated system locales.
  392. pref("bidi.browser.ui", false);
  393.